package main

import "fmt"

// Author : CSR丶WARRIOR
// Time ： 2020/10/10  0:38
// TOOLS : GoLand
// FILENAME : fallthroughDemo.go
// STATEMENT: 判断是今年的第几天

func main() {
	var month uint
	var day uint
	fmt.Println("请输入月份")
	fmt.Scan(&month)
	fmt.Println("请输入日期")
	fmt.Scan(&day)
	switch month {
	case 12:
		day += 30
		fallthrough
	case 11:
		day += 31
		fallthrough
	case 10:
		day += 30
		fallthrough
	case 9:
		day += 31
		fallthrough
	case 8:
		day += 31
		fallthrough
	case 7:
		day += 30
		fallthrough
	case 6:
		day += 31
		fallthrough
	case 5:
		day += 30
		fallthrough
	case 4:
		day += 31
		fallthrough
	case 3:
		day += 28
		fallthrough
	case 2:
		day += 31
	case 1:

	default:
		fmt.Println("输入有误")
	}
	fmt.Println(day)
}
